home *** CD-ROM | disk | FTP | other *** search
/ The Scorpion King Cardz / The Scorpion King Cardz - Disc 2 - Cassandra.iso / pc / assets / scorp_bio.dxr / 00002_loop.ls < prev    next >
Encoding:
Text File  |  2002-03-21  |  1.8 KB  |  59 lines

  1. global oDrawStage, oOrbitCenter, oOrbitNodes, oOrbitButtons, oRollText, oRollPanel, oExitButton, oBackButton, oBioNavNodes, oBioNavCenter, oLetters, gPrevMouseLoc, oLetterSparks, oTextAnim, gSubNavState, gPrevMill, pGovTicks, gFPS, oMusicButton, wMusic, gCloseWinFlag, oVolMeter
  2.  
  3. on exitFrame me
  4.   gFPS = float(1000) / float(the milliSeconds - gPrevMill)
  5.   gPrevMill = the milliSeconds
  6.   repeat with i = 1 to count(oOrbitNodes)
  7.     moveNodes(oOrbitNodes[i])
  8.   end repeat
  9.   repeat with i = 1 to count(oBioNavNodes)
  10.     moveNavButtons(oBioNavNodes[i])
  11.   end repeat
  12.   if (oOrbitCenter <> EMPTY) and (oOrbitCenter <> VOID) then
  13.     moveOrbitCenter(oOrbitCenter)
  14.   end if
  15.   if (oBioNavCenter <> EMPTY) and (oBioNavCenter <> VOID) then
  16.     moveBioNavCenter(oBioNavCenter)
  17.   end if
  18.   if oRollText <> EMPTY then
  19.     blendRollText(oRollText)
  20.   end if
  21.   if oRollPanel <> EMPTY then
  22.     blendRollPanel(oRollPanel)
  23.   end if
  24.   if (oExitButton <> EMPTY) and (oExitButton <> VOID) then
  25.     checkExit(oExitButton)
  26.   end if
  27.   if (oBackButton <> EMPTY) and (oBackButton <> VOID) then
  28.     checkBack(oBackButton)
  29.   end if
  30.   repeat with i = 1 to count(oLetterSparks)
  31.     oLetterSparks[i].moveObj()
  32.   end repeat
  33.   repeat with i = 1 to count(oLetters)
  34.     oLetters[i].moveLetter()
  35.   end repeat
  36.   repeat with i = 1 to count(oTextAnim)
  37.     animText(oTextAnim[i])
  38.   end repeat
  39.   gPrevMouseLoc = the mouseLoc
  40.   if gSubNavState = 1 then
  41.     repeat with i = 1 to 3
  42.       createLetters()
  43.     end repeat
  44.   end if
  45.   if (oVolMeter <> EMPTY) and (oVolMeter <> VOID) then
  46.     checkVolMeter(oVolMeter)
  47.   end if
  48.   checkVolMouse()
  49.   if (oDrawStage <> EMPTY) and (oDrawStage <> VOID) then
  50.     oDrawStage.mainLoop()
  51.   end if
  52.   if gCloseWinFlag = 1 then
  53.     setUpAudio()
  54.     oDrawStage.pPunchFlag = 0
  55.     gCloseWinFlag = 0
  56.   end if
  57.   go(the frame)
  58. end
  59.